-
Notifications
You must be signed in to change notification settings - Fork 0
Make MultiSigGeneric
define virtual emit{EVENT_NAME}
functions from which events get emitted
#252
Conversation
MultiSigGeneric
define virtual emit{EVENT_NAME}
functions from which events get emitted
@@ -29,11 +29,6 @@ contract EndowmentMultiSigEmitter is IEndowmentMultiSigEmitter, Initializable { | |||
); | |||
event TransactionConfirmed(uint256 endowmentId, address owner, uint256 transactionId); | |||
event TransactionConfirmationRevoked(uint256 endowmentId, address owner, uint256 transactionId); | |||
event TransactionConfirmationOfFormerOwnerRevoked( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the same as TransactionConfirmationRevoked
above and is unused in Subgraph
@@ -62,11 +62,6 @@ contract CharityApplications is MultiSigGeneric, StorageApplications, ICharityAp | |||
_; | |||
} | |||
|
|||
// @dev overrides the generic multisig initializer and restricted function | |||
function initialize(address[] memory, uint256, bool, uint256) public override initializer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By making MultiSigGeneric.initialize
internal and non-virtual, we make it possible to remove this "not implemented funcs" there were cluttering the contract code only to avoid a compiler error.
Every child of MultiSigGeneric
must now implement its own initializer and optionally call super.initialize
.
/// @param _approvalsRequired Number of required confirmations. | ||
/// @param _requireExecution setting for if an explicit execution call is required | ||
/// @param _transactionExpiry Proposal expiry time in seconds | ||
function initialize( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just moved it down to "internal functions" section
This reverts commit b44a58e.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done. I appreciate the initializer cleanup as well
Closes #251
Instructions on making this work
yarn
oryarn install
to install npm dependencies